class Circle
{
    static float cr=0.0f;
    final float PI=3.142f;
    public float perimeter(float r)
    {
        cr=r;
        return cr*2*PI;
    }
    public float area(float r)
    {
        cr=r;
        return PI*r*r;
    }
}
public class CreatCircle
{
    public static void main(String[] avgs)
    {
        float c_Perimeter;
        float c_Area;
        Circle c= new Circle();
        c_Perimeter=c.perimeter(2);
        c_Area=c.area(2);
        System.out.println("半径为2的圆周长为: "+ c_Perimeter);
        System.out.println("半径为2的圆面积为: "+c_Area);
        
    }
}